<template>
	<view class="news tn-safe-area-inset-bottom">
		<!-- 1. Nav -->
		<tn-nav-bar fixed alpha customBack>
			<view slot="back" :isBack="true" class='tn-custom-nav-bar__back'>
				<text v-if="!showHome" class='icon tn-icon-left' @click="goBack"></text>
				<text v-if="showHome" class='icon tn-icon-home-capsule-fill' @click="goHome"></text>
			</view>
		</tn-nav-bar>

		<!-- 1.分页 -->
		<swiper class="card-swiper" :circular="true" :autoplay="true" duration="500" interval="18000"
			@change="cardSwiper">
			<swiper-item v-for="(item,index) in swiperList" :key="index" :class="cardCur==index?'cur':''">
				<view class="swiper-item image-banner">
					<image :src="item.image" mode="aspectFill" v-if="item.type=='image'"></image>
				</view>
				<!-- 				<view class="tn-text-df tn-text-bold tnloukong">{{item.title}}</view> -->
				<view class="swiper-item-text">
					<view class="tn-text-lg tn-text-bold tn-color-white">{{item.name}}</view>
				</view>
			</swiper-item>
		</swiper>


		<!-- 介绍详情 -->
		<view class="" style="padding-bottom: 60rpx;margin-top: -100rpx;z-index: 999; position: relative;">
			<!-- 不建议写时间，因为写了时间，你就要经常更新文章了鸭-->
			<view class="">
				<view class="article-shadow tn-margin tn-bg-white" @click="tn('/newsPages/article')">
					<view class="tn-flex">
						<view class="tn-margin-sm tn-padding-top-xs" style="width: 100%;">
							<view class="tn-text-lg tn-text-bold clamp-text-1 tn-text-justify">
								<text class="">{{ detailInfo.title }}</text>
							</view>
							<view class="tn-padding-top-xs" style="min-height: 90rpx;">
								<text class="tn-text-df tn-color-gray  tn-text-justify">
									{{ detailInfo.desc }}
								</text>
							</view>
							<view class="tn-flex tn-flex-row-between tn-flex-col-between tn-margin-top-sm">
								<view v-for="(label_item,label_index) in item.label" :key="label_index"
									class="justify-content-item tn-tag-content__item tn-margin-right tn-text-sm tn-text-bold">
									<text class="tn-tag-content__item--prefix">#</text> {{ label_item }}
								</view>
							</view>
						</view>
					</view>
				</view>
			</view>
		</view>


		<!-- BMTI -->
		<view v-if="bmtiList.length" class=""
			style="padding-bottom: 60rpx;margin-top: -100rpx;z-index: 999; position: relative;">
			<!-- 不建议写时间，因为写了时间，你就要经常更新文章了鸭-->
			<view class="">
				<view class="article-shadow tn-margin tn-bg-white" @click="tn('/newsPages/article')">
					<view class="tn-flex">
						<van-grid column-num="4" :border="true">
							<van-grid-item use-slot v-for="item in bmtiList">
								<view @click="bmtiClickManager(item)"
									style="display: flex;flex-direction: column;align-items: center;justify-content: center;">
									<div style="display: flex;">
										<image style="width: 70rpx; height: 140rpx;" :src="item.image_man" />
										<image style="width: 70rpx; height: 140rpx;" :src="item.image_woman" />
									</div>

									<span style="margin-top: 10rpx;"
										class="tn-text-bold  tn-text-md">{{item.name}}</span>
								</view>
							</van-grid-item>
						</van-grid>
					</view>
				</view>
			</view>
		</view>



		<view v-if="detailInfo.category.length" v-for="categoryItem in detailInfo.category" :key="categoryItem.id"
			class="" style="padding-bottom: 60rpx;margin-top: -100rpx;z-index: 999; position: relative;">
			<!-- 不建议写时间，因为写了时间，你就要经常更新文章了鸭-->

			<mainvideo v-if="categoryItem.video != '' && categoryItem.video" :transferItem="categoryItem" />

			<view v-else class="">
				<view class="article-shadow tn-margin tn-bg-white">
					<view class="tn-flex">
						<view class="tn-margin-sm tn-padding-top-xs" style="width: 100%;">
							<view class="tn-text-lg tn-text-bold clamp-text-1 tn-text-justify">
								<text class="">{{ categoryItem.title }}</text>
							</view>
							<view v-if="categoryItem.desc" class="tn-padding-top-xs" style="min-height: 90rpx;">
								<text class="tn-text-df tn-color-gray  tn-text-justify">
									{{ categoryItem.desc }}
								</text>
							</view>

							<van-image v-if="categoryItem.image" fit="heightFix" height="150rpx"
								:src="categoryItem.image" @click="imageClick(categoryItem.image)"/>
						</view>
					</view>
				</view>
			</view>
		</view>



		<!-- 	<view 
			class="tn-footerfixed tn-flex tn-flex-row-between tn-flex-col-center ">
			
		</view> -->


		<view id="top-info" style="z-index: 10000;"
			class="tn-footerfixed tn-flex tn-flex-row-between tn-flex-col-center tn-padding tn-safe-area-inset-bottom dd-glass"
			:style="{transform: `translateY(${topInfoTranslateY}px)`}">
			<view class="justify-content-item tn-padding-bottom">
				<view class="tn-flex tn-flex-col-center tn-flex-row-left">
					<view class="user-pic">
						<tn-avatar-group :lists="groupList" size="sm"></tn-avatar-group>
					</view>
					<view class="tn-padding-right tn-color-black">
						<view class="tn-padding-right tn-padding-left-sm">

						</view>
						<view class="tn-padding-right tn-padding-top-xs tn-padding-left-sm tn-text-ellipsis">
							<text class="tn-color-black tn-text-bold">{{detailInfo.used}} 人测试过</text>
						</view>
					</view>
				</view>
			</view>

			<view class="justify-content-item tn-flex-col-center tn-flex-row-center tn-text-center tn-padding-bottom"
				@click="clickNowManager">
				<view class="">
					<text class="tn-icon-send-fill tn-color-green--dark " style="font-size: 50rpx;"></text>
				</view>
				<view class="">
					<text class="tn-text-sm">免费测试</text>
				</view>
			</view>
		</view>
		<!-- 登录 -->
		<AutoLoginManager ref="autoLoginManager" @actionEventManager="loginSuccessActionManager" />

		<view class='tn-tabbar-height'></view>



	</view>
</template>

<script>
	import {
		memberHasLoginManager
	} from '@/api/login.js'
	import {
		SubjectSubSubjectDetail
	} from '@/api/subject.js'
	import {
		BMTIBMTIType,
		BMTIBMTIDetail
	} from '@/api/bmti.js'
	import {
		shareInfo
	} from '@/common/utils.js'
	import AutoLoginManager from '@/components/AutoLogin/AutoLoginManager.vue'
	import mainvideo from '@/components/Video/video.vue'


	export default {
		name: 'News',
		components: {
			AutoLoginManager,
			mainvideo,
		},
		data() {
			return {
				// 0.是否显示回到首页按钮
				showHome: getCurrentPages().length == 1 ? true : false,

				transferItem: {},

				// BMTI
				bmtiList: [],


				cardCur: 0,
				swiperList: [{
					id: 0,
					type: 'image',
					title: '我不喜欢带伞',
					name: '因为雨水从不滴落在我心上',
					url: 'https://resource.tuniaokj.com/images/swiper/banner-animate3.png',
				}],
				groupList: [{
						src: 'https://cdn.nlark.com/yuque/0/2022/jpeg/280373/1663570648127-assets/web-upload/b8625625-2a52-47f9-a27c-adf6becd3c94.jpeg'
					},
					{
						src: 'https://cdn.nlark.com/yuque/0/2022/jpeg/280373/1663570648152-assets/web-upload/410aa585-dd43-4e9a-912c-fc8c04e0e8f9.jpeg'
					},
					{
						src: 'https://cdn.nlark.com/yuque/0/2022/jpeg/280373/1663571007436-assets/web-upload/e3fdeb91-d8d1-4187-8d91-593559543af3.jpeg'
					},
					{
						src: 'https://cdn.nlark.com/yuque/0/2022/jpeg/280373/1663570648186-assets/web-upload/244e6b96-177a-40e6-953d-3ab080c22793.jpeg'
					},
					{
						src: 'https://cdn.nlark.com/yuque/0/2022/jpeg/280373/1663570648156-assets/web-upload/3b9aa10c-36ca-43ff-9321-38fd1d3dfffc.jpeg'
					},
				],
				detailInfo: {
					userAvatar: 'https://resource.tuniaokj.com/images/blogger/avatar_2.jpeg',
					userName: '可我会像',
					date: '2021年12月20日',
					color: 'blue',
					label: ['空间设计'],
					title: '为什么资讯不显示时间？',
					desc: '你确定你经常更新文章吗？',
					mainImage: 'https://resource.tuniaokj.com/images/shop/computer2.jpg',
					viewUser: {
						latestUserAvatar: [{
								src: 'https://resource.tuniaokj.com/images/blogger/avatar_1.jpeg'
							},
							{
								src: 'https://resource.tuniaokj.com/images/blogger/avatar_2.jpeg'
							},
							{
								src: 'https://resource.tuniaokj.com/images/blogger/avatar_3.jpeg'
							},
							{
								src: 'https://resource.tuniaokj.com/images/blogger/avatar_4.jpeg'
							},
						],
						viewUserCount: 321
					},

				},
			}
		},
		onLoad(item) {
			if (item) {
				this.transferItem = item;
				var that = this;
				this.interfaceSubjectSubSubjectDetail(item).then(res => {
					// BMTI
					if (res.name.indexOf('BMTI') != -1) {
						that.interfaceBMTIBMTIType();
					}
				});
			}
		},


		onShow() {
			console.log('页面显示')
		},
		onReady() {
			console.log('页面初次显示')
		},
		onHide() {
			console.log('页面隐藏')
		},
		onUnload() {
			console.log('页面卸载')
			this.transferItem = {};

			// BMTI
			this.bmtiList = [];
		},
		onBackPress() {
			console.log('页面返回...')
		},
		onShareAppMessage() {
			console.log('分享!')
		},
		onReachBottom() {
			console.log('下拉加载...')
		},
		onPageScroll() {
			console.log('页面滚动...')
		},
		onPullDownRefresh() {

		},


		onShareAppMessage() {


			return shareInfo()
		},

		onShareTimeline() {

			var shareInfo = '';
			var memberId = uni.getStorageSync('openid')

			var url = '/pages/root/main';

			return {
				title: '测爱好、测智商、测性格、测姻缘，就来赶紧测测',
				imageUrl: 'https://ganjincece1.oss-cn-hangzhou.aliyuncs.com/App/logo.jpg',
				imagePreviewUrl: 'https://ganjincece1.oss-cn-hangzhou.aliyuncs.com/App/logo.jpg',
				path: url,
				query: 'share=true&openid=' + memberId,

			}
		},

		methods: {
			imageClick(img) {
				wx.previewImage({
					urls: [img], //接受的是一个数组，默认展示第一张
					current: "",
					success: function(res) {},
					fail: function(res) {},
					complete: function(res) {},
				});
			},
			
			goBack() {

				uni.navigateBack();
			},
			goHome() {
				uni.reLaunch({
					url: '/pages/root/main'
				});
			},

			// cardSwiper
			cardSwiper(e) {
				this.cardCur = e.detail.current
			},

			// 跳转到问题页面
			directToQuestionInfoPage() {
				uni.navigateTo({
					url: '/pages/question/index?partId=' + this.transferItem.partId + '&abulm=' + this
						.detailInfo
						.ablum + '&name=' + this.detailInfo.title + '&desc=' + this.detailInfo.desc
				})
			},

			clickNowManager() {
				// 表示登录了
				if (memberHasLoginManager() == true) {
					this.directToQuestionInfoPage();
				} else {
					// 先登录
					this.$refs.autoLoginManager.loginManager();

				}

			},

			loginSuccessActionManager(method, item, cname, realItem) {
				console.log(method, item, cname, realItem);

				this.directToQuestionInfoPage();
			},


			// 跳转
			tn(e) {
				uni.navigateTo({
					url: e,
				});
			},

			// 获取详情
			interfaceSubjectSubSubjectDetail(item) {
				var that = this;
				var params = {
					id: item.partId
				}

				return new Promise((resolve) => {
					SubjectSubSubjectDetail(params).then(res => {
						that.swiperList = [{
							type: 'image',
							title: res.name,
							image: res.ablum
						}]

						that.detailInfo.title = res.name;
						that.detailInfo.desc = res.description;
						that.detailInfo.ablum = res.ablum;
						that.detailInfo.used = res.used;
						that.detailInfo.category = res.categoryList;

						resolve(res);
					});
				})

			},

			// 获取类型
			interfaceBMTIBMTIType() {
				var that = this;

				BMTIBMTIType().then(res => {
					that.bmtiList = res.list;
				});
			},


			bmtiClickManager(item) {
				uni.navigateTo({
					url: '../MBTI/MBTIDetail?id=' + item.mbti_id
				})
			},

			// 选择年龄
			chooseAgeManager(method, item, cname, realItem) {
				console.log(method, item, cname, realItem);
			}
		}
	}
</script>

<style lang="scss" scoped>
	.news {
		max-height: 100vh;
	}

	/* 自定义导航栏内容 start */
	.custom-nav {
		height: 100%;

		&__back {
			margin: auto 5rpx;
			font-size: 50rpx;
			margin-right: 10rpx;
			margin-left: 30rpx;
			flex-basis: 5%;
		}

		&__search {
			flex-basis: 60%;
			width: 100%;
			height: 100%;

			&__box {
				width: 100%;
				height: 70%;
				padding: 10rpx 0;
				margin: 0 30rpx;
				border-radius: 60rpx 60rpx 0 60rpx;
				font-size: 24rpx;
			}

			&__icon {
				padding-right: 10rpx;
				margin-left: 20rpx;
				font-size: 30rpx;
			}

			&__text {
				// color: #AAAAAA;
			}
		}
	}

	/* 底部安全边距 start*/
	.tn-tabbar-height {
		min-height: 120rpx;
		height: calc(140rpx + env(safe-area-inset-bottom) / 2);
		height: calc(140rpx + constant(safe-area-inset-bottom));
	}

	/* 文字截取*/
	.clamp-text-1 {
		-webkit-line-clamp: 1;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		text-overflow: ellipsis;
		overflow: hidden;
	}

	.clamp-text-2 {
		-webkit-line-clamp: 2;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		text-overflow: ellipsis;
		overflow: hidden;
	}

	/* 镂空 */
	.tnloukong {
		position: fixed;
		padding: 4rpx 8rpx;
		bottom: 220rpx;
		border-radius: 5rpx;
		left: 30rpx;
		font-weight: bold;
		text-align: center;
		z-index: 1000;
		background: rgba(255, 255, 255, 1);
		color: #070707;
		/* mix-blend-mode: overlay; difference;lighten;hue*/
		mix-blend-mode: lighten;

	}


	/* 轮播视觉差 start */
	.card-swiper {
		height: 500rpx !important;
	}

	.card-swiper swiper-item {
		width: 750rpx !important;
		left: 0rpx;
		box-sizing: border-box;
		// padding: 0rpx 30rpx 90rpx 30rpx;
		overflow: initial;
	}

	.card-swiper swiper-item .swiper-item {
		width: 100%;
		display: block;
		height: 100%;
		transform: scale(1);
		transition: all 0.2s ease-in 0s;
		will-change: transform;
		overflow: hidden;
	}

	.card-swiper swiper-item.cur .swiper-item {
		transform: none;
		transition: all 0.2s ease-in 0s;
		will-change: transform;
	}

	.card-swiper swiper-item .swiper-item-text {
		margin: -200rpx 0 0 30rpx;
		width: 100%;
		transition: all 0.6s ease 0s;
		will-change: transform;
	}



	.image-banner {
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.image-banner image {
		width: 100%;
		height: 100%;
	}

	/* 轮播指示点 start*/
	.indication {
		z-index: 9999;
		width: 100%;
		height: 36rpx;
		position: absolute;
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: center;
	}

	.spot {
		background-color: #FFFFFF;
		opacity: 0.6;
		width: 30rpx;
		height: 6rpx;
		border-radius: 0rpx;
		left: -275rpx;
		top: -130rpx;
		margin: 0 5rpx !important;
		position: relative;
	}

	.spot.active {
		opacity: 1;
		width: 30rpx;
		background-color: #FFFFFF;
	}


	/* 阴影 start*/
	.home-shadow {
		border-radius: 15rpx;
		box-shadow: 0rpx 0rpx 50rpx 0rpx rgba(0, 0, 0, 0.07);
	}


	/* 资讯主图 start*/
	.image-article {
		border-radius: 8rpx;
		width: 200rpx;
		height: 200rpx;
		position: relative;
	}

	.image-pic {
		border: 1rpx solid #F8F7F8;
		background-size: cover;
		background-repeat: no-repeat;
		// background-attachment:fixed;
		background-position: top;
		border-radius: 10rpx;
	}

	.article-shadow {
		border-radius: 15rpx;
		box-shadow: 0rpx 0rpx 50rpx 0rpx rgba(0, 0, 0, 0.07);
	}

	/* 文字截取*/
	.clamp-text-1 {
		-webkit-line-clamp: 1;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		text-overflow: ellipsis;
		overflow: hidden;
	}

	.clamp-text-2 {
		-webkit-line-clamp: 2;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		text-overflow: ellipsis;
		overflow: hidden;
	}

	/* 标签内容 start*/
	.tn-tag-content {
		&__item {
			display: inline-block;
			line-height: 35rpx;
			color: #1D2541;
			background-color: #F3F2F7;
			border-radius: 10rpx;
			font-size: 22rpx;
			padding: 5rpx 15rpx;

			&--prefix {
				padding-right: 10rpx;
			}
		}
	}


	/* 大单图 start*/
	.tn-blogger-content2 {
		&__wrap {
			padding: 30rpx;
		}

		&__info {
			&__btn {
				margin-right: -12rpx;
				opacity: 0.5;
			}
		}

		&__label {
			&__item {
				line-height: 45rpx;
				padding: 0 20rpx;
				margin: 5rpx 18rpx 0 0;

				&--prefix {
					color: #00FFC8;
					padding-right: 10rpx;
				}
			}

			&__desc {
				line-height: 55rpx;
			}
		}

		&__main-image {
			box-shadow: 0rpx 5rpx 40rpx 0rpx rgba(43, 158, 246, 0.2);
			border-radius: 16rpx;

			&--1 {
				max-width: 690rpx;
				min-width: 690rpx;
				max-height: 400rpx;
				min-height: 400rpx;
			}

			&--2 {
				max-width: 260rpx;
				max-height: 260rpx;
			}

			&--3 {
				height: 212rpx;
				width: 100%;
			}
		}

		&__count-icon {
			font-size: 40rpx;
			padding-right: 5rpx;
		}
	}

	.image-design {
		padding: 140rpx 0rpx;
		font-size: 40rpx;
		font-weight: 300;
		position: relative;
	}

	.image-pic {
		background-size: cover;
		background-repeat: no-repeat;
		// background-attachment:fixed;
		background-position: top;
		border-radius: 10rpx;
	}

	/* 文章内容 end*/



	/* 底部安全边距 start*/
	.tn-tabbar-height {
		min-height: 120rpx;
		height: calc(140rpx + env(safe-area-inset-bottom) / 2);
		height: calc(140rpx + constant(safe-area-inset-bottom));
	}

	.tn-footerfixed {
		position: fixed;
		background-color: rgba(255, 255, 255, 0.5);
		box-shadow: 0rpx 0rpx 30rpx 0rpx rgba(0, 0, 0, 0.07);
		bottom: 0;
		width: 100%;
		transition: all 0.25s ease-out;
		z-index: 100;
	}

	/* 文字截取*/
	.clamp-text-1 {
		-webkit-line-clamp: 1;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		text-overflow: ellipsis;
		overflow: hidden;
	}

	.clamp-text-2 {
		-webkit-line-clamp: 2;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		text-overflow: ellipsis;
		overflow: hidden;
	}

	/* 用户头像 start */
	.shop-image {
		width: 35rpx;
		height: 35rpx;
		position: relative;
		overflow: hidden;
		border-radius: 50%;
	}

	.shop-pic {
		background-size: cover;
		background-repeat: no-repeat;
		// background-attachment:fixed;
		background-position: top;
		border: 1rpx solid rgba(255, 255, 255, 0.05);
		box-shadow: 0rpx 0rpx 80rpx 0rpx rgba(0, 0, 0, 0.15);
		border-radius: 50%;
		overflow: hidden;
		// background-color: #FFFFFF;
	}


	/* 阴影 start*/
	.nav-shadow {
		border-radius: 15rpx;
		box-shadow: 0rpx 0rpx 50rpx 0rpx rgba(0, 0, 0, 0.07);
	}


	/* 用户头像 start */
	.nav-image {
		width: 35rpx;
		height: 35rpx;
		position: relative;
		overflow: hidden;
		border-radius: 50%;
	}

	.nav-pic {
		background-size: cover;
		background-repeat: no-repeat;
		// background-attachment:fixed;
		background-position: top;
		border: 1rpx solid rgba(255, 255, 255, 0.05);
		box-shadow: 0rpx 0rpx 80rpx 0rpx rgba(0, 0, 0, 0.15);
		border-radius: 50%;
		overflow: hidden;
		// background-color: #FFFFFF;
	}

	.icon12 {
		&__item {
			width: 30%;
			background-color: #FFFFFF;
			border-radius: 10rpx;
			padding: 30rpx;
			margin: 20rpx 10rpx;
			transform: scale(1);
			transition: transform 0.3s linear;
			transform-origin: center center;

			&--icon {
				width: 100rpx;
				height: 100rpx;
				font-size: 60rpx;
				border-radius: 50%;
				margin-bottom: 18rpx;
				position: relative;
				z-index: 1;

				&::after {
					content: " ";
					position: absolute;
					z-index: -1;
					width: 100%;
					height: 100%;
					left: 0;
					bottom: 0;
					border-radius: inherit;
					opacity: 1;
					transform: scale(1, 1);
					background-size: 100% 100%;
					background-image: url(https://resource.tuniaokj.com/images/cool_bg_image/icon_bg.png);


				}
			}
		}
	}


	/* 用户头像 start */
	.logo-image {
		width: 85rpx;
		height: 85rpx;
		position: relative;
		overflow: hidden;
		border-radius: 50%;
	}

	.logo-pic {
		background-size: cover;
		background-repeat: no-repeat;
		// background-attachment:fixed;
		background-position: top;
		border: 1rpx solid #F8F7F8;
		// box-shadow: 0rpx 0rpx 80rpx 0rpx rgba(0, 0, 0, 0.15);
		border-radius: 50%;
		overflow: hidden;
		// background-color: #FFFFFF;
	}

	/* 用户头像 start */
	.logo-image2 {
		width: 45rpx;
		height: 45rpx;
		position: relative;
		overflow: hidden;
		border-radius: 50%;
	}

	.logo-pic2 {
		background-size: cover;
		background-repeat: no-repeat;
		// background-attachment:fixed;
		background-position: top;
		border: 1rpx solid #F8F7F8;
		// box-shadow: 0rpx 0rpx 80rpx 0rpx rgba(0, 0, 0, 0.15);
		border-radius: 50%;
		overflow: hidden;
		// background-color: #FFFFFF;
	}

	/* 胶囊*/
	.tn-custom-nav-bar__back {
		width: 50%;
		height: 100%;
		position: relative;
		display: flex;
		justify-content: space-evenly;
		align-items: center;
		box-sizing: border-box;
		background-color: rgba(0, 0, 0, 0.15);
		border-radius: 1000rpx;
		border: 1rpx solid rgba(255, 255, 255, 0.5);
		color: #FFFFFF;
		font-size: 18px;

		.icon {
			display: block;
			flex: 1;
			margin: auto;
			text-align: center;
		}

		&:before {
			content: " ";
			width: 1rpx;
			height: 110%;
			position: absolute;
			top: 22.5%;
			left: 0;
			right: 0;
			margin: auto;
			transform: scale(0.5);
			transform-origin: 0 0;
			pointer-events: none;
			box-sizing: border-box;
			opacity: 0.7;
			background-color: #FFFFFF;
		}
	}

	/* 底部悬浮按钮 start*/
	.tn-tabbar-height {
		min-height: 120rpx;
		height: calc(140rpx + env(safe-area-inset-bottom) / 2);
	}

	.tn-footerfixed {
		position: fixed;
		background-color: rgba(255, 255, 255, 0.5);
		box-shadow: 0rpx 0rpx 30rpx 0rpx rgba(0, 0, 0, 0.07);
		bottom: 0;
		width: 100%;
		transition: all 0.25s ease-out;
		will-change: transform;
		z-index: 100;
	}


	/* 毛玻璃*/
	.dd-glass {
		width: 100%;
		backdrop-filter: blur(20rpx);
		-webkit-backdrop-filter: blur(20rpx);
	}
</style>